<#escape x as x?html>
<div class="bjui-pageContent">
    <form action="${ctx}/business/leave/dealWorkflow" class="pageForm" data-toggle="validate" data-reload-navtab="true" method="POST">
		<input type="hidden" name="taskId" value="${task.id}">
		<input type="hidden" name="leaveId" value="${leave.leaveId}">
		<div class="tab-content">
			<div class="tab-pane fade active in" id="roleInfo">
		    	 <table class="table table-condensed table-hover">
		            <tbody>
			            <tr>
			                <td>
			                    <label for="userName" class="control-label x90">请假人姓名：</label>
			                    ${leave.userName}
			                </td>
			                <td>
			                    <label for="type" class="control-label x90">请假类型：</label>
			                    <@h.select name="type" list=fn.getDicValue('LEAVE_TYPE')/>
			                </td>
			            </tr>
			            <tr>
			                <td>
			                    <label for="startDate" class="control-label x90">开始日期：</label>
			                    <input type="text" name="startDate" id="startDate" value="${leave.startDate?string('yyyy-MM-dd')}" data-rule="required" size="12" data-toggle="datepicker" placeholder="点击选择日期">
			                </td>
			                <td>
			                    <label for="endDate" class="control-label x90">结束日期：</label>
			                    <input type="text" name="endDate" id="endDate" value="${leave.endDate?string('yyyy-MM-dd')}" data-rule="required" size="12" data-toggle="datepicker" placeholder="点击选择日期">
			                </td>			                
			            </tr>			            
			            <tr>
			                <td colspan="2">
			                    <label for="reason" class="control-label x90">请假原因：</label>
								<input type="text" name="reason" id="reason" value="${leave.reason}" data-rule="required" size="40">
			                </td>
			            </tr>
			            <tr>
			                <td colspan="2">
			                    <label for="remark" class="control-label x90">备注：</label>
								<textarea name="remark" id="remark" rows="10" cols="40">${leave.remark}</textarea>
			                </td>
			            </tr> 
		            </tbody>
		        </table>
			</div>
		</div>
    </form>
    
	<div style="margin-top:10px;">
	<table class="table table-striped table-bordered table-hover">
		<tbody>
		        <tr style="height: 30px;">
					<th colsnum="0" style="cursor: default;"><div class="fixedtableCol">审批环节</div></th>
					<th colsnum="1" style="cursor: default;"><div class="fixedtableCol">审批人</div></th>
					<th colsnum="2" style="cursor: default;"><div class="fixedtableCol">审批人部门</div></th>
					<th colsnum="3" style="cursor: default;"><div class="fixedtableCol">审批状态</div></th>
					<th colsnum="4" style="cursor: default;"><div class="fixedtableCol">审批意见</div></th>
					<th colsnum="5" style="cursor: default;"><div class="fixedtableCol">审批时间</div></th>
		        </tr>	
		        <#list list as workflow>	            
		        <tr>
		                <td>${workflow.activityName}</td>
		                <td>${workflow.assignee}</td>
		                <td>${workflow.departmentName}</td>
		                <td>${workflow.status}</td>
		                <td>${workflow.opinion}</td>
		                <td>${(workflow.approvalDate?string('yyyy-MM-dd hh:mm:ss'))!}</td>
		        </tr>
		        </#list>
		    </tbody>
		</table>
	</div> 
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close">关闭</button>
        </li>
        <li>
            <button type="submit" class="btn-green">流程下一步</button>
        </li>        
    </ul>
</div>
</#escape>